﻿using Godot;

namespace MonsterDiKe.common;

/**
 * 角色动画名称
 * 配合 {@link PlayerAnimationPrefixNameConst}使用
 */
public class PlayerAnimationNameConst
{
    public const string Up = "up";

    public const string Down = "down";

    public const string Idle = "side";

    public static string GetByVector(Vector2 vector2)
    {
        if (vector2 == Vector2.Up)
        {
            return Up;
        }

        if (vector2 == Vector2.Down)
        {
            return Down;
        }

        return Idle;
    }
}